$(function () {
    function getMemberList() {
        var params="";
        getPageAjaxData({
            url: baseloaction + '/web/uc/member/ajax/ajaxQueryMemberList',//请求URL
            contextId:'member-list-box',//响应内容页面设置内容ID
            params:params,//请求参数
            callback:function () {//数据加载完成回调
            }
        });
    }
    getMemberList();

    $("body").on('click',".blank-item",function () {
        $('.blank-item').removeClass('active')
        var _this = $(this);
        _this.addClass('active');
        var depice = _this.find("textarea").val();
        $("#depice-text").html(depice);
    }).on('click',"#open-member",function () {
        var active = $(".buyMember__wrap>section").find(".active");
        var id = $(active).data("id");
        if(id==null || typeof id =='undefined'){
            icModale(0,'','请选择要开通的会员');
            return;
        }
        window.location.href = baseloaction +'/web/uc/order/initPayOrder?orderType=COMMON&shopData='+id+'-MEMBER-1&shareKey=';
    });
});